package com.eastfair.certificate.vo;

import cn.afterturn.easypoi.excel.annotation.Excel;
import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;
import lombok.Data;
import lombok.Builder;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import lombok.AllArgsConstructor;
import com.fasterxml.jackson.annotation.JsonInclude;
import lombok.ToString;
import lombok.experimental.Accessors;
import com.eastfair.annotation.annotation.vo.VoInfo;
import com.eastfair.annotation.model.BaseVoGroupClass;
import java.io.Serializable;
import java.time.LocalDateTime;

import com.eastfair.vo.BaseVO;
import org.springframework.format.annotation.DateTimeFormat;

import static com.baomidou.mybatisplus.annotation.SqlCondition.LIKE;

/**
 * <p>
 * 实体类
 * 
 * </p>
 *
 * @author clm
 * @since 2022-08-02
 */
@Data
@ApiModel(value = "BlacklistVO", description = "")
public class BlacklistVO extends BaseVO implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "主键")
    @JsonInclude(JsonInclude.Include.NON_NULL)
    @VoInfo(groups = {BaseVoGroupClass.all.class})
    private Long id;

    /**
     * 是否启用：1是；0否
     */
    @ApiModelProperty(value = "是否启用：1是；0否")
    @JsonInclude(JsonInclude.Include.NON_NULL)
    private Integer isEnabled;
    /**
     * 是否删除：1是；0否
     */
    @ApiModelProperty(value = "是否删除：1是；0否")
    @JsonInclude(JsonInclude.Include.NON_NULL)
    private Integer isDeleted;
    /**
     * 租户id
     */
    @ApiModelProperty(value = "租户id")
    @JsonInclude(JsonInclude.Include.NON_NULL)
    private Long tenantId;
    /**
     * 项目id
     */
    @ApiModelProperty(value = "项目id")
    @JsonInclude(JsonInclude.Include.NON_NULL)
    private Long projectId;
    /**
     * 子系统id
     */
    @ApiModelProperty(value = "子系统id")
    @JsonInclude(JsonInclude.Include.NON_NULL)
    private Long subsystemId;
    /**
     * 展会id
     */
    @ApiModelProperty(value = "展会id")
    @JsonInclude(JsonInclude.Include.NON_NULL)
    private Long exhibitionId;
    /**
     * 展会名称
     */
    @ApiModelProperty(value = "展会名称")
    @JsonInclude(JsonInclude.Include.NON_NULL)
    @Size(max = 255, message = "展会名称长度不能超过255")
    private String exhibitionName;
    /**
     * 身份证号码
     */
    @ApiModelProperty(value = "身份证号码")
    @JsonInclude(JsonInclude.Include.NON_NULL)
    @Size(max = 255, message = "身份证号码长度不能超过255")
    private String cardNumber;

    /**
     * 姓名
     */
    @ApiModelProperty(value = "姓名")
    @Size(max = 255, message = "姓名长度不能超过255")
    @TableField(value = "user_name", condition = LIKE)
    @Excel(name = "姓名")
    private String userName;
    /**
     * 手机号
     */
    @ApiModelProperty(value = "手机号")
    @JsonInclude(JsonInclude.Include.NON_NULL)
    @Size(max = 255, message = "手机号长度不能超过255")
    private String phoneNumber;
    /**
     * 公司名称
     */
    @ApiModelProperty(value = "公司名称")
    @JsonInclude(JsonInclude.Include.NON_NULL)
    @Size(max = 255, message = "公司名称长度不能超过255")
    private String companyName;
    /**
     * 公司id
     */
    @ApiModelProperty(value = "公司id")
    @JsonInclude(JsonInclude.Include.NON_NULL)
    private Long companyId;
    /**
     * 备注
     */
    @ApiModelProperty(value = "备注")
    @JsonInclude(JsonInclude.Include.NON_NULL)
    @Size(max = 255, message = "备注长度不能超过255")
    private String remark;
    /**
     * 分类 police 公安 venue 场馆 exhibition 展会
     */
    @ApiModelProperty(value = "分类 police 公安 venue 场馆 exhibition 展会")
    @JsonInclude(JsonInclude.Include.NON_NULL)
    @Size(max = 255, message = "分类 police 公安 venue 场馆 exhibition 展会长度不能超过255")
    private String kind;


    /**
     * 创建时间
     */
    @ApiModelProperty(value = "创建时间")
    @JsonInclude(JsonInclude.Include.NON_NULL)
    @VoInfo(groups = {BaseVoGroupClass.all.class})
    @TableField(value = "create_time", fill = FieldFill.INSERT)
    @JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime createTime;



    /**
     * 数据来源
     */
    @ApiModelProperty(value = "数据来源")
    @JsonInclude(JsonInclude.Include.NON_NULL)
    @VoInfo(groups = {BaseVoGroupClass.all.class})
    private String dataResource;


    /**
     * 创建人
     */
    @ApiModelProperty(value = "创建人")
    @JsonInclude(JsonInclude.Include.NON_NULL)
    @VoInfo(groups = {BaseVoGroupClass.all.class})
    private Long createdBy;
}
